require 'socket'

server = Socket.new(:INET,:STREAM)
addr = Socket.pack_sockaddr_in(4481,'0.0.0.0')

server.bind(addr)

server.listen(128)

loop do
  conn ,_ = server.accept
  p 'conn fo:',conn.fileno
  conn.close
end